package com.example.demo.mapper;

import com.example.demo.vo.*;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * @author : Zhang.yt
 * @date : 2023/12/6
 */
@Mapper
public interface WmsPurchaseNewMapper {
    PurchaseNotReceiptVo getPurchaseGetNew();

    List<PurchaseNotReceiptListVo> getPurchaseGetListNew(String slno);

    void updateStSlOpflg(String slno, int opflg, String pmdtdocno);

    GenIqcDataVo getGenIqcDataNew();

    void updateStCheckOpflg(String checkno, int opflg, String qcbadocno);

    void updateStCheckTcOpflg(String checkno, int opflg, String qcbadocno);

    PurchaseReceiptFormVo getPurchaseIn();

    List<PurchaseReceiptFormListReq2>  getgetPurchaseInListNew(String pmds055);

    void updatePurchaseInOpflg(String pmds055, int opflg, String pmdtdocno);

    List<SlStoreableVo> getSlStoreableVoList(String sourceid,List<String> mcodeList);

    void updatePurchaseInreturnQty(@Param("req") PurchaseReceiptFormListReq2 listReq2,@Param("pmds055") String pmds055);

    void updatePurchaseReceiptDetails(String pmds006);

    void wmsSrmUpStockqty(String pmds055);

    void wmsQmsCheckSlno(String pmds055);

    Integer getPmdl005(Set<String> purchaseOrderNos);

    Integer getGenIqcDataNewList(String qcbaud001);

    BigDecimal getGenIqcDataNewWw(String checkNo);

    List<DeleteGenIqcDataVo> getDeleteGenIqcData(String orderNo);

    void wmsErpSelectCheckRollback(String orderNo);

    Integer checkIsInput(String pmdsdocno,List<Integer> collect);

    List<UpdateCodeInfoVo> getUpdateCodeInfo();

    List<ProcurementDetailsVo> getProcurementDetailsVoList(String pmdt001, Integer pmdt002);

    List<ProcurementDetailsVo> getProcurementDetailsVoListHistory(@Param("pmdt001") String pmdt001, @Param("pmdt006") String pmdt006);

    List<WmsErpSlHistoryData> getWmsErpSlHistoryData(@Param("purchaseOrderNos") Set<String> purchaseOrderNos);

    Integer checkIsWw(String slno);
}
